import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("application.xml");
        Student student = context.getBean(Student.class);
        System.out.println("6.bean对象准备就绪可以使用了" + student);
        context.close();
        System.out.println("8.关闭IOC容器");
    }
}
